<!--#
var expected = value!"";
-->

<div class="layui-upload">
    <div class="layui-upload-list">
        <img class="layui-upload-img" id="upload-img-tag-img${id}" alt="" style="width: 13.5em;height: 13.5em;" src="${value}"/>
        <p id="upload-img-tag-text${id}"></p>
    </div>
    <button type="button" class="layui-btn" id="upload-img-tag-button${id}" style="width: 13.5em;">上传图片</button>
</div>
<input type="text" id="${id}" name="${id}" hidden="true" value="${value}" ${isNotEmpty(layVerify)?('lay-verify="uploadImgVerify"'):''} value="${expected}">

<script>
    Lib.uploadImg($("#${id}"),"${type}","${id}");

    layui.use('form', function () {
        var form = layui.form;
        form.verify({
            uploadImgVerify: function (value, item) {
                if (!value) {
                    return '请上传图片';
                }
            }
        });
    });
</script>
